<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div id="app">
    {{result}}
    <button @click="funA()">点我</button>
</div>
</body>
</html>

<script src="../js/vue.min.js"></script>
<script src="../js/axios.min.js"></script>
<script>
    new Vue({
        el: '#app',
        data() {
            return {
                result: ''
            }
        },
        methods: {
            funA() {
                axios({
                    method: 'get',
                    url: 'http://localhost:8080/boot08/a'
                }).then(resp => {
                    this.result = resp.data
                })
            }
        }
    })
</script>